from django.shortcuts import render,HttpResponse
#from form.forms import AddForm
# Create your views here.
#def index(request):
#    if request.method=="POST":
#        form = AddForm(request.POST)
#        if form.is_valid():
#            a=form.cleaned_data["a"]
#            b=form.cleaned_data["b"]
#        return HttpResponse(str(int(a)+int(b)))
#    else:
#        form = AddForm()
#        return render(request,"index.html",{"form":form})
def add(request):
    a=request.GET["a"]
    b=request.GET["b"]
    return HttpResponse(str(int(a)+int(b)))
def kkk(request):
    return render(request,"home.html")